package com.cskaoyan.bean.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class WxCouponVo {

    private int id;
    private int cid;

    private String name;
    private String desc;
    private String tag;
    private Double min;
    private BigDecimal discount;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date startTime;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date endTime;
    private boolean available;


    public WxCouponVo(int id, int cid, String name, String desc, String tag, Double min, BigDecimal discount, Date startTime, Date endTime, boolean available) {
        this.id = id;
        this.cid = cid;
        this.name = name;
        this.desc = desc;
        this.tag = tag;
        this.min = min;
        this.discount = discount;
        this.startTime = startTime;
        this.endTime = endTime;
        this.available = available;
    }

    public WxCouponVo() {
    }
}
